package com.clf.springCloudTest.service;

import com.clf.common.vo.Result;
import com.clf.common.vo.Search;
import com.clf.test.City;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: chenglongfei
 * @date: 2022/7/14
 * @Description CityService
 */
public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    List<City> getCitiesByCountryId(int countryId);

    PageInfo<City> getCitiesBySearch(Search search);

    Result<Object> insertBatchCities(@Param("cities") List<City> cities);
}
